#ifndef MENUITEMSMANAGER_H
#define MENUITEMSMANAGER_H

#include <wx/menu.h>

WX_DEFINE_ARRAY( wxMenuItem*, MenuItemsList );

class MenuItemsManager {
  public:
    MenuItemsManager( bool autoClearOnDestroy = true );
    virtual ~MenuItemsManager();
    virtual int CreateFromString( const wxString& menuPath, int id );
    virtual wxMenuItem* Add( wxMenu* parent, int id, const wxString& caption, const wxString& helptext );
    virtual wxMenuItem* Insert( wxMenu* parent, int index, int id, const wxString& caption, const wxString& helptext );
    virtual void Clear();
  protected:
    MenuItemsList m_MenuItems;
    bool m_AutoClearOnDestroy;
  private:
};

#endif

